package ran.domain.exam.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import java.time.LocalDateTime;


/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: ran
 * Date: 2025-10-25
 * Time: 13:42
 */
@Data
public class ExamAddDTO {
    @NotBlank(message = "竞赛标题不可以为空")
    @NotNull(message = "竞赛标题不可以为空")
    private String title;
    @NotNull(message = "开始时间不可以为空")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime startTime;
    @NotNull(message = "结束时间不可以为空")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime endTime;
}
